package com.wanshi.service.impl;

import com.wanshi.mapper.StuMapper;
import com.wanshi.pojo.Stu;
import com.wanshi.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;
@Service
public class StuServiceImpl implements StuService {
    @Autowired
    StuMapper stuMapper;
    @Override
    public List<Stu> getStuList() {
        return stuMapper.getStuList();
    }

    @Override
    public Stu getStuById(Integer stu_id) {
        return stuMapper.getStuById(stu_id);
    }

    @Override
    public String addStu(Stu stu) {
        return stuMapper.addStu(stu);
    }

    @Override
    public void delStuById(Integer stu_id) {
        stuMapper.delStuById(stu_id);

    }

    @Override
    public void updateStuById(Integer stu_id) {
        stuMapper.updateStuById(stu_id);

    }
}
